package com.lovo.project.enums;

import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

/**
 * @author pankez
 * @title 订单异常类
 * @data 2020/11/3 23:29
 */
@Getter
public enum OrderCodeEnum{
    /**订单未找到*/
    ORDER_FINDOUT_ENUM(5401,"订单未找到异常"),
    /**订单修改异常*/
    ORDER_UPDATE_ENUM(5404,"订单修改异常"),
    /**未知异常*/
    ORDER_UNKNOW_ENUM(9999,"未知异常");

    /**枚举状态码*/
    private int code;
    /**状态信息*/
    private String msg;

    OrderCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
